<html>
<head><meta charset="utf-8"><title>Turning on `trace!` output · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Turning.20on.20.60trace!.60.20output.html">Turning on `trace!` output</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="194291082"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Turning%20on%20%60trace%21%60%20output/near/194291082" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Samrat Man Singh <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Turning.20on.20.60trace!.60.20output.html#194291082">(Apr 16 2020 at 11:47)</a>:</h4>
<p>How can I turn on printing of <code>trace!</code>s? Setting <code>debug=true</code> in Cargo.toml did not help.</p>



<a name="194291543"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Turning%20on%20%60trace%21%60%20output/near/194291543" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Turning.20on.20.60trace!.60.20output.html#194291543">(Apr 16 2020 at 11:52)</a>:</h4>
<p>I think you need <code>debug-assertions = true</code>.</p>



<a name="194292560"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Turning%20on%20%60trace%21%60%20output/near/194292560" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Turning.20on.20.60trace!.60.20output.html#194292560">(Apr 16 2020 at 12:01)</a>:</h4>
<p>also you need to use <code>RUSTC_LOG</code> instead of <code>RUST_LOG</code></p>



<a name="194293053"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Turning%20on%20%60trace%21%60%20output/near/194293053" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Turning.20on.20.60trace!.60.20output.html#194293053">(Apr 16 2020 at 12:07)</a>:</h4>
<p><code>debug = true</code> should imply <code>debug-assertions = true</code> so I'm guessing the env var name is the problem</p>



<a name="194302622"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Turning%20on%20%60trace%21%60%20output/near/194302622" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Samrat Man Singh <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Turning.20on.20.60trace!.60.20output.html#194302622">(Apr 16 2020 at 13:22)</a>:</h4>
<p>Thanks. Setting <code>RUSTC_LOG</code> worked</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>